﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="action_list.aspx.cs" Inherits="MxWeiXinPF.Web.admin.toupiao.action_list" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>高级投票</title>
    <%=PageJSAndStype("list").ToString() %>

    <script type="text/javascript">
        function parentToIndex(id) {
            parent.location.href = "/admin/Index.aspx?id=" + id;

        }

        $(function () {


        });



    </script>

    <style>
        a.shenghe {
            color: red;
        }
    </style>

</head>
<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:;" class="home"><i class="iconfont icon-home"></i><span>高级投票</span></a>
        </div>
        <!--/导航栏-->
        <div class="mytips">
            需要“微信基础设置”--“微信设置”---（基础参数设置）开启“登录接口配置（网页授权）”，开启后，直接访问网址就可以
       
       
        </div>
        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <a class="menu-btn"></a>

                    <div class="l-list">

                        <ul class="icon-list">

                            <li><a  href="action_edit.aspx?action=<%=MxWeiXinPF.Common.MXEnums.ActionEnum.Add %>" id="itemBlackButton"><i  class="iconfont icon-close"></i><span>添加投票活动</span></a></li>
                            <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i class="iconfont icon-check"></i><span>全选</span></a></li>
                            <li>
                                <asp:LinkButton ID="btnDelete" runat="server" CssClass="del" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><i class="iconfont icon-delete"></i><span>删除</span></asp:LinkButton></li>

                        </ul>

                    </div>

                    <div class="r-list">

                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />

                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click"><i class="iconfont icon-search"></i></asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>


        <!--/工具栏-->

        <!--列表-->

        <asp:Repeater ID="rptList" runat="server" OnItemCommand="rptList_ItemCommand">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <thead>
                        <tr>
                            <th>选择</th>
                            <th>标题</th>

                            <th>开始时间/结束时间</th>
                            <th>状态</th>
                            <th>外链代码</th>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody class="ltbody">
            </HeaderTemplate>
            <ItemTemplate>
                <tr class="td_c">
                    <td>
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td>
                        <%# Eval("name") %>
                    </td>

                    <td>
                        <%# Eval("startDate") %><br />
                        <%# Eval("endDate") %>
                        
                    </td>
                    <td>
                        <%# Eval("status_s") %>
                    </td>
                    <td>
                        <a href="javascript:;"><%=yuming%>/weixin/toupiao/index.aspx?wid=<%=wid %>&aid=<%#Eval("id") %></a>
                    </td>

                    <td>
                        <a href="action_edit.aspx?action=<%#MxWeiXinPF.Common.MXEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>" title="编辑" class="edit">编辑</a>
                        <a href="member_list.aspx?actid=<%#Eval("id")%>" title="投票结果" class="edit">结果管理</a>


                        <asp:LinkButton ID="likLingQu" runat="server" CommandName="end" CommandArgument='<%#Eval("id")%>'> <%# Eval("caozuo") %></asp:LinkButton>

                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无记录</td></tr>" : ""%>
                 </tbody>
                </table>
           
           
            </FooterTemplate>
        </asp:Repeater>

        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>
</html>
